***************************************************************************************************************
* Name: Table 3
* Description: Save conditional choice probabilities from main model
* Reference: "Strategic Victimization"
***************************************************************************************************************

use "violence_t_export.dta",clear
keep if victim_farc~=.&victim_paras~=.

*****Log likelihood definition*****

	local controls "nbi_t royalties_t coca_t share_left lpobl_tot_t i.time army_dist gini_i dmr evlp gcaribe gpacifica gorinoquia gamazonia"
	

		npregress kernel victim_farc `controls' farc_dist if victim_paras~=., estimator(constant) noderivatives
		predict pF
		npregress kernel victim_paras `controls' paras_dist if victim_paras~=.,estimator(constant) noderivatives
		predict pP
	corr  pF victim_farc pP victim_paras

keep muni_code time pP pF
		
export delimited using "phats.csv", replace
